﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LightBox.master" AutoEventWireup="true" CodeFile="UserChatHistory.aspx.cs" Inherits="UserChatHistory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="navcontainer">
<ul id="navlist">
<li><a href="CallHistory.aspx">Istoric apeluri</a></li>
<li id="active"><a href="UserChatHistory.aspx" id="current">Istoric conversaţii</a></li>
</ul>
</div>
   <br/>
 
    <asp:Panel ID="pnlHistoryAll" Visible="false" runat="server">
        <asp:DataList ID="DataList1"
           RepeatDirection="Vertical"
           RepeatLayout="FLow"
           runat="server">

         <AlternatingItemStyle BackColor="#EEF2FF" Width="100%">
         </AlternatingItemStyle>

         <ItemTemplate>
                <span style="color: #9E9E9E;font-size: 11px;">
                    <%# DataBinder.Eval(Container.DataItem, "Date", "{0:dd/MM/yyyy}")%>
                </span>
                <a href="UserChatHistory.aspx?date=<%# DataBinder.Eval(Container.DataItem, "Date", "{0:dd-MM-yyyy}")%>&uid=<%# DataBinder.Eval(Container.DataItem, "User.Id")%>">
                Conversatie cu <%# DataBinder.Eval(Container.DataItem, "User.UserName")%>
                </a>
         </ItemTemplate>

      </asp:DataList>
    </asp:Panel>

    <asp:Panel ID="pnlConv" Visible="false" runat="server">
        <asp:Literal ID="litTitle" runat="server"></asp:Literal>
        <asp:DataList ID="DataList2"
           RepeatDirection="Vertical"
           RepeatLayout="FLow"
           runat="server">

         <AlternatingItemStyle BackColor="#EEF2FF" Width="100%">
         </AlternatingItemStyle>

         <ItemTemplate>
                <span style="color: #9E9E9E;font-size: 11px;">
                    <%# DataBinder.Eval(Container.DataItem, "Date", "{0:hh:mm:ss}")%>
                </span> <%# DataBinder.Eval(Container.DataItem, "User1.UserName")%>: <b><%# DataBinder.Eval(Container.DataItem, "Message")%></b>
         </ItemTemplate>

      </asp:DataList>
    </asp:Panel>


</asp:Content>

